package p270jp.pxv.android.model;

import java.io.Serializable;
import p270jp.pxv.android.legacy.constant.ContentType;
import p270jp.pxv.android.legacy.constant.SearchAspectRatio;
import p270jp.pxv.android.legacy.constant.SearchDuration;
import p270jp.pxv.android.legacy.constant.SearchIllustTool;
import p270jp.pxv.android.legacy.constant.SearchSize;
import p270jp.pxv.android.legacy.constant.SearchSort;
import p270jp.pxv.android.legacy.constant.SearchTarget;

/* renamed from: jp.pxv.android.model.SearchParameter */
/* loaded from: classes2.dex */
public class SearchParameter implements Serializable {
    private SearchAspectRatio aspectRatio;
    private SearchBookmarkRange bookmarkRange;
    private ContentType contentType;
    private SearchDurationParameter durationParameter;
    private SearchIllustTool illustTool;
    private String query;
    private SearchSize size;
    private SearchSort sort;
    private SearchTarget target;

    public SearchAspectRatio getAspectRatio() {
        return this.aspectRatio;
    }

    public SearchBookmarkRange getBookmarkRange() {
        return this.bookmarkRange;
    }

    public ContentType getContentType() {
        return this.contentType;
    }

    public SearchDurationParameter getDurationParameter() {
        return this.durationParameter;
    }

    public SearchIllustTool getIllustTool() {
        return this.illustTool;
    }

    public String getQuery() {
        return this.query;
    }

    public SearchSize getSize() {
        return this.size;
    }

    public SearchSort getSort() {
        return this.sort;
    }

    public SearchTarget getTarget() {
        return this.target;
    }

    private SearchParameter(Builder builder) {
        this.query = builder.query;
        this.contentType = builder.contentType;
        this.sort = builder.sort;
        this.size = builder.size;
        this.target = builder.target;
        this.bookmarkRange = builder.bookmarkRange;
        this.durationParameter = builder.durationParameter;
        this.aspectRatio = builder.aspectRatio;
        this.illustTool = builder.illustTool;
    }

    /* renamed from: jp.pxv.android.model.SearchParameter$Builder */
    /* loaded from: classes2.dex */
    public static class Builder {
        private SearchAspectRatio aspectRatio;
        private SearchBookmarkRange bookmarkRange;
        private ContentType contentType;
        private SearchDurationParameter durationParameter;
        private SearchIllustTool illustTool;
        private String query;
        private SearchSize size;
        private SearchSort sort;
        private SearchTarget target;

        public Builder(ContentType contentType, String str) {
            this.sort = SearchSort.DESC;
            this.target = SearchTarget.PARTIAL_MATCH_FOR_TAGS;
            this.bookmarkRange = SearchBookmarkRange.Companion.createDefaultInstance();
            this.durationParameter = SearchDurationParameter.createNormalParameter(SearchDuration.ALL);
            this.contentType = contentType;
            this.query = str;
        }

        public SearchParameter build() {
            return new SearchParameter(this);
        }

        public Builder setAspectRatio(SearchAspectRatio searchAspectRatio) {
            this.aspectRatio = searchAspectRatio;
            return this;
        }

        public Builder setBookmarkRange(SearchBookmarkRange searchBookmarkRange) {
            this.bookmarkRange = searchBookmarkRange;
            return this;
        }

        public Builder setDurationParameter(SearchDurationParameter searchDurationParameter) {
            this.durationParameter = searchDurationParameter;
            return this;
        }

        public Builder setIllustTool(SearchIllustTool searchIllustTool) {
            this.illustTool = searchIllustTool;
            return this;
        }

        public Builder setSize(SearchSize searchSize) {
            this.size = searchSize;
            return this;
        }

        public Builder setSort(SearchSort searchSort) {
            this.sort = searchSort;
            return this;
        }

        public Builder setTarget(SearchTarget searchTarget) {
            this.target = searchTarget;
            return this;
        }

        public Builder(SearchParameter searchParameter) {
            this.sort = SearchSort.DESC;
            this.target = SearchTarget.PARTIAL_MATCH_FOR_TAGS;
            this.bookmarkRange = SearchBookmarkRange.Companion.createDefaultInstance();
            this.durationParameter = SearchDurationParameter.createNormalParameter(SearchDuration.ALL);
            this.query = searchParameter.getQuery();
            this.contentType = searchParameter.getContentType();
            this.sort = searchParameter.getSort();
            this.size = searchParameter.getSize();
            this.target = searchParameter.getTarget();
            this.bookmarkRange = searchParameter.getBookmarkRange();
            this.durationParameter = searchParameter.getDurationParameter();
            this.aspectRatio = searchParameter.getAspectRatio();
            this.illustTool = searchParameter.getIllustTool();
        }
    }
}
